MATMULT

Syntax: MATMULT product, matrix1, matrix2
Location: Math Package

The command MATMULT performs multiplication on matrices of floating point type. The matrix1 is multiplied with matrix2 and the result stored in product. 

Since a n x m matrix represents a linear transformation which takes n-dimensional vectors and produces m-dimensional vectors from them, the following conditions must be satisfied by the three matrices supplied to MATMULT:   

(1) All matrices must be two-dimensional.   
(2) DIMN (matrix1, 2) = DIMN (matrix2, 1)   
(3) DIMN (matrix1, 1) = DIMN (product, 1)    
(4) DIMN (matrix2, 2) = DIMN (product, 2)

The latter three conditions are obviously satisfied by square matrices.

NOTE:
Normally the product of two matrices A*B is not the same as B*A.

CROSS-REFERENCE:
See MATINV.
